The interval subset sum problem (ISSP) is a generalization of the well-knownsubset sum problem. Given a set of intervals$\left\{[a_{i,1},a_{i,2}]\right\}_{i=1}^n$ and a target integer $T,$ the ISSPis to find a set of integers, at most one from each interval, such that theirsum best approximates the target $T$ but cannot exceed it. In this paper, wefirst study the computational complexity of the ISSP. We show that the ISSP isrelatively easy to solve compared to the 0-1 Knapsack problem (KP). We alsoidentify several subclasses of the ISSP which are polynomial time solvable(with high probability), albeit the problem is generally NP-hard. Then, wepropose a new fully polynomial time approximation scheme (FPTAS) for solvingthe general ISSP problem. The time and space complexities of the proposedscheme are ${\cal O}\left(n \max\left\{1 / \epsilon,\log n\right\}\right)$ and${\cal O}\left(n+1/\epsilon\right),$ respectively, where $\epsilon$ is therelative approximation error. To the best of our knowledge, the proposed schemehas almost the same time complexity but a significantly lower space complexitycompared to the best known scheme. Both the correctness and efficiency of theproposed scheme are validated by numerical simulations. In particular, theproposed scheme successfully solves ISSP instances with $n=100,000$ and$\epsilon=0.1\%$ within one second.
展开▼
机译:间隔子集和问题(ISSP)是众所周知的子集和问题的概括。给定一组间隔$ \ left \ {[a_ {i,1},a_ {i,2}] \ right \} _ {i = 1} ^ n $和目标整数$ T,$ ISSP可以找到一组整数,每个间隔中最多一个整数,这样它们的和最接近目标$ T $,但不能超过它。在本文中,我们首先研究了ISSP的计算复杂性。我们表明,与0-1背包问题(KP)相比,ISSP相对易于解决。我们还确定了ISSP的几个子类,这些子类是多项式时间可解的(很有可能),尽管问题通常是NP难的。然后,我们提出了一种新的完全多项式时间近似方案(FPTAS)来解决一般的ISSP问题。拟议方案的时间和空间复杂度为$ {\ cal O} \ left(n \ max \ left \ {1 / / epsilon,\ log n \ right \} \ right)$和$ {\ cal O} \ left (n + 1 / \ epsilon \ right),$,其中$ \ epsilon $是相对近似误差。据我们所知,与最著名的方案相比,所提出的方案具有几乎相同的时间复杂度,但空间复杂度却大大降低。通过数值仿真验证了所提方案的正确性和有效性。特别地,所提出的方案在一秒钟内成功地解决了$ n = 100,000 $和$ \ epsilon = 0.1 \%$的ISSP实例。
展开▼